﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace Urb.Weather.Core.Provider
{
    public class WeatherDataProviderConfigurationDefinition : IEnumerable<WeatherDataProviderConfigurationAttributeDefinition>
    {
        private List<WeatherDataProviderConfigurationAttributeDefinition> attributeDefinitions =
            new List<WeatherDataProviderConfigurationAttributeDefinition>();

        public WeatherDataProviderConfigurationDefinition()
        {
        }

        public void AddAttributeDefinition(WeatherDataProviderConfigurationAttributeDefinition attributeDefinition)
        {
            this.attributeDefinitions.Add(attributeDefinition);
        }
        
        public IEnumerator<WeatherDataProviderConfigurationAttributeDefinition> GetEnumerator()
        {
            return attributeDefinitions.GetEnumerator();
        }

        IEnumerator IEnumerable.GetEnumerator()
        {
            return attributeDefinitions.GetEnumerator();
        }
    }
}
